package com.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wty
 * @since 2021-05-15
 */
@Data
@Accessors(chain = true)
@TableName("gate_trend")
public class GateTrend extends Model<GateTrend> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名字
     */
    private String name;
    /**
     * 当前价格
     */
    @TableField("end_price")
    private BigDecimal endPrice;
    /**
     * 5分钟前价格
     */
    @TableField("start_price")
    private BigDecimal startPrice;
    /**
     * 当前时间
     */
    private Long time;
    /**
     * 5分钟涨幅
     */
    private BigDecimal zf;
    /**
     * 当前涨幅
     */
    private String trend;

    /**
     * 状态
     * @return
     */
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
